package cn.bluemobi.platform.mapper;

import java.util.List;
import java.util.Map;

import cn.bluemobi.platform.entity.category.CommodityCategory;

public interface CommodityCategoryMapper {
	int deleteByPrimaryKey(Long id);

	int insert(CommodityCategory record);

	int insertSelective(CommodityCategory record);

	CommodityCategory selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(CommodityCategory record);

	int updateByPrimaryKey(CommodityCategory record);

	List<Map<String, Object>> findPages(Map<String, Object> map);

	List<Map<String, Object>> findSecondPages(Map<String, Object> map);

	List<Map<String, Object>> findAllFirstCataPages();

	List<CommodityCategory> findCatagoryByUsed(Long id);

	List<CommodityCategory> querySecondPages();

	int checkIsCommodityByCatagoryId(Long catagoryId);
}